package com.qiqidream.admin.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qiqidream.admin.system.model.dto.MenuDto;
import com.qiqidream.admin.system.model.entity.Department;
import com.qiqidream.admin.system.model.entity.Menu;
import com.qiqidream.admin.system.model.vo.DepartmentVo;
import com.qiqidream.admin.system.model.vo.MenuVo;

import java.util.List;

/**
 * @author QiQiDream
 * @since 2019/11/18 10:53
 */
public interface DepartmentService extends IService<Department> {
    /**
     * 获取所有部门
     * @author QiQiDream
     * @since 2019/12/10 10:18
     * @return java.util.List<com.qiqidream.admin.system.model.vo.DepartmentVo>
     */
    List<DepartmentVo> getDepartments();

    /**
     * 删除部门及其子部门
     * @author QiQiDream
     * @since 2019/12/10 20:19
     * @param id 部门id
     * @return java.lang.Boolean
     */
    Boolean removeDepartment(Long id);
}
